package com.weixing.mall.provider.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @ClassName CategoryBrandDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/8/6
 * @Version 1.0
 **/
@Data
@ApiModel(description = "商品类目品牌关联")
public class CategoryBrandDto {

    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 商品类目
     */
    @ApiModelProperty(value = "商品类目id")
    @NotNull(message = "商品类目id不能为空")
    private Long categoryId;

    /**
     * 品牌id
     */
    @ApiModelProperty(value = "品牌id")
    @NotNull(message = "品牌id不能为空")
    private Long brandId;
}
